package com.mz.ozy.mvp.model;

import android.content.Context;
import android.text.TextUtils;

import com.mz.ozy.constants.Constants;
import com.mz.ozy.net.RetrofitUtils;
import com.mz.ozy.utils.JsonUtils;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;

/**
 * Created by administrator on 2018/12/3.
 */
public class ScheduledModel {


    public Observable<ResponseBody> geAssetsInfo(Context context, String city, String address, String pid) {
        Map<String, String> maps = new HashMap<>();
        maps.put("city", city);
        maps.put("area", address);
        if (!TextUtils.isEmpty(pid)) {
            maps.put("pid", pid);
        }
        return RetrofitUtils.getApiService(context).post(Constants.TransCode.TransCode10082, JsonUtils.requestJsonDate(maps), Constants.tokenId);
    }

}
